<?php 
 
namespace app\common\model;

use app\common\model\BaseModel;
use app\common\traits\ModelTrait;
use app\common\utils\JsonService;
/**
* This is the model class for table "{ptf_wx_user}".
*
* @property int $id 表id 
* @property int $member_id uid 
* @property string $wxname 公众号名称
* @property string $aeskey aeskey
* @property int $encode encode 
* @property string $appid appid
* @property string $appsecret appsecret
* @property string $wxid 公众号原始ID
* @property string $weixin 微信号
* @property string $headerpic 头像地址
* @property string $token token
* @property string $w_token 微信对接token
* @property int $create_time create_time 
* @property int $updatetime updatetime 
* @property string $tplcontentid 内容模版ID
* @property string $share_ticket 分享ticket
* @property string $share_dated share_dated
* @property string $authorizer_access_token authorizer_access_token
* @property string $authorizer_refresh_token authorizer_refresh_token
* @property string $authorizer_expires authorizer_expires
* @property int $type 类型 
* @property string $web_access_token  网页授权token
* @property string $web_refresh_token web_refresh_token
* @property int $web_expires 过期时间 
* @property string $qr qr
* @property string $menu_config 菜单
* @property int $wait_access 微信接入状态,0待接入1已接入 
*/
class WxUser extends BaseModel{

    protected $pk = 'id';
    protected $name = 'wx_user';

    use ModelTrait;
    protected $autoWriteTimestamp = true;
    //protected $dateFormat = 'Y-m-d';
    //protected $createTime = 'create_time';
    //protected $updateTime = 'update_time';

    /**
    * {@inheritdoc}
    */
    public function attributeLabels()
    {
        return [
            'id' => '表id',
            'member_id' => 'uid',
            'wxname' => '公众号名称',
            'aeskey' => 'aeskey',
            'encode' => 'encode',
            'appid' => 'appid',
            'appsecret' => 'appsecret',
            'wxid' => '公众号原始ID',
            'weixin' => '微信号',
            'headerpic' => '头像地址',
            'token' => 'token',
            'w_token' => '微信对接token',
            'create_time' => 'create_time',
            'updatetime' => 'updatetime',
            'tplcontentid' => '内容模版ID',
            'share_ticket' => '分享ticket',
            'share_dated' => 'share_dated',
            'authorizer_access_token' => 'authorizer_access_token',
            'authorizer_refresh_token' => 'authorizer_refresh_token',
            'authorizer_expires' => 'authorizer_expires',
            'type' => '类型',
            'web_access_token' => ' 网页授权token',
            'web_refresh_token' => 'web_refresh_token',
            'web_expires' => '过期时间',
            'qr' => 'qr',
            'menu_config' => '菜单',
            'wait_access' => '微信接入状态,0待接入1已接入',
        ];
    }

}


?>